package com.example;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;


public class MainScene {
    public void open() throws Exception {
        Stage primaryStage=new Stage();
        Parent root = FXMLLoader.load(getClass().getResource("/view/sample.fxml"));
        primaryStage.setTitle("五子棋联机版");
        primaryStage.setScene(new Scene(root, 740, 520));
        primaryStage.setResizable(false);
        primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/image/pane.png")));
        primaryStage.show();
    }
}
